
<?php
/* display message saved in session if any */
echo $this->Session->flash();
?>
<?php echo $this->Form->create('User', array('role' => 'form', 'class' => 'form-horizontal')); ?>

<h1 class="col-sm-offset-2"> Registrieren: </h1>

<div class="form-group">
<?php 
	echo $this->Form->label('username', 'Benutzername', 'col-sm-2 control-label');
	echo $this->Form->input('username',array(
		'class' => 'form-control',
		'label' => false,
		'div' => 'input text required col-sm-3'
	));
?>
</div>
<div class="form-group">
<?PHP
	echo $this->Form->label('password', 'Passwort', 'col-sm-2 control-label');
	echo $this->Form->input('password',array(
		'class' => 'form-control',
		'label' => false,
		'div' => 'input text required col-sm-3'
	));
?>
</div>
<div class="form-group">
<?php 
	echo $this->Form->label('firstname', 'Vorname', 'col-sm-2 control-label');
	echo $this->Form->input('firstname',array(
		'class' => 'form-control',
		'label' => false,
		'div' => 'input text required col-sm-3'
	));
?>
</div>
<div class="form-group">
<?PHP
	echo $this->Form->label('lastname', 'Nachname', 'col-sm-2 control-label');
	echo $this->Form->input('lastname',array(
		'class' => 'form-control',
		'label' => false,
		'div' => 'input text required col-sm-3'
	));
?>
</div>
<div class="form-group">
<?PHP
	echo $this->Form->label('email', 'Email', 'col-sm-2 control-label');
	echo $this->Form->input('email',array(
		'class' => 'form-control',
		'label' => false,
		'div' => 'input text required col-sm-3'
	));
?>
</div>
<div class="col-sm-offset-2">
<?php echo $this->Form->end(__('Registrieren')); ?>
</div>